package com.yu.smsinterceptor.mode;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.util.Date;

/**
 * 拦截的短信
 */
@Table(name = "message")
public class Message {

    @Column(name = "id", isId = true)
    private Long id;

    //来源号码
    @Column(name = "phone")
    private Long phone;

    //短信内容
    @Column(name = "content")
    private String content;

    //接收时间
    @Column(name = "receiver_time")
    private Date receiverTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPhone() {
        return phone;
    }

    public void setPhone(Long phone) {
        this.phone = phone;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getReceiverTime() {
        return receiverTime;
    }

    public void setReceiverTime(Date receiverTime) {
        this.receiverTime = receiverTime;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", phone=" + phone +
                ", content='" + content + '\'' +
                ", receiverTime=" + receiverTime +
                '}';
    }
}
